package com.lnsystem.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StockDailyData {

	private String symbol;
	private int id;
	private int stockId;
	private double open;
	private double close;
	private double high;
	private double low;
	private double volume;
	private Date date;
	
	//private TechIndicator techIndicator;
	private List<MovingAverage> movingAverages; //1:n with movingAverage table
	// based on property/config, this list will be populated with different movingaverages
	// like 50sma, 200sma, 20sma, 10ema, 8ema, 20ema etc..
	
	private double bbUpper;
	private double bbMiddle;
	private double bbLower;
	
	public StockDailyData() {
		this.movingAverages = new ArrayList<MovingAverage>();
	}
	
	
	public List<MovingAverage> getMovingAverages() {
		return movingAverages;
	}
	
	
	public void setMovingAverages(List<MovingAverage> movingAverages) {
		this.movingAverages = movingAverages;
	}
	

	
	
	public double getBbUpper() {
		return bbUpper;
	}


	public void setBbUpper(double bbUpper) {
		this.bbUpper = bbUpper;
	}


	public double getBbMiddle() {
		return bbMiddle;
	}


	public void setBbMiddle(double bbMiddle) {
		this.bbMiddle = bbMiddle;
	}


	public double getBbLower() {
		return bbLower;
	}


	public void setBbLower(double bbLower) {
		this.bbLower = bbLower;
	}


	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getStockId() {
		return stockId;
	}
	public void setStockId(int stockId) {
		this.stockId = stockId;
	}
	public double getOpen() {
		return open;
	}
	public void setOpen(double open) {
		this.open = open;
	}
	public double getClose() {
		return close;
	}
	public void setClose(double close) {
		this.close = close;
	}
	public double getHigh() {
		return high;
	}
	public void setHigh(double high) {
		this.high = high;
	}
	public double getLow() {
		return low;
	}
	public void setLow(double low) {
		this.low = low;
	}
	public double getVolume() {
		return volume;
	}
	public void setVolume(double volume) {
		this.volume = volume;
	}	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
/*	public TechIndicator getTechIndicator() {
		return techIndicator;
	}
	public void setTechIndicator(TechIndicator techIndicator) {
		this.techIndicator = techIndicator;
	}*/
	@Override
	public String toString() {
		return "StockDailyData [symbol=" + symbol + ", id=" + id + ", stockId="
				+ stockId + ", open=" + open + ", close=" + close + ", high="
				+ high + ", low=" + low + ", volume=" + volume + ", date="
				+ date + "]";
	}
	
	
}
